projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2718dfa
)
(scan_sexps_forward): Use the initial depth
author
Richard M. Stallman
<rms@gnu.org>
Wed, 16 Aug 1995 15:03:24 +0000
(15:03 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 16 Aug 1995 15:03:24 +0000
(15:03 +0000)
in the starting state for tracking when we reach TARGETDEPTH.
src/syntax.c
patch
|
blob
|
history
diff --git
a/src/syntax.c
b/src/syntax.c
index 8a97a936d38a78c4a15b231a9274ebc3c4eb2703..ed482be484da7cca1fd6d620cc6c15dfbc1640eb 100644
(file)
--- a/
src/syntax.c
+++ b/
src/syntax.c
@@
-1534,7
+1534,7
@@
scan_sexps_forward (stateptr, from, end, targetdepth,
error ("Nesting too deep for parser");
curlevel->prev = -1;
curlevel->last = -1;
- if (
!--target
depth) goto done;
+ if (
targetdepth !=
depth) goto done;
break;
case Sclose:
@@
-1544,7
+1544,7
@@
scan_sexps_forward (stateptr, from, end, targetdepth,
if (curlevel != levelstart)
curlevel--;
curlevel->prev = curlevel->last;
- if (
!++target
depth) goto done;
+ if (
targetdepth !=
depth) goto done;
break;
case Sstring: